package com.extr.persistence;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.extr.domain.exam.HomeWork;
import com.extr.domain.exam.HomeWorkHistory;
import com.extr.util.Page;

public interface HomeWorkMapper {

	/*public void addUserHomeWorkHistory(HomeWorkHistory homeWorkHistory);

	public HomeWorkHistory getUserHomeWorkHistoryByUserIdAndHomeWorkId(
			@Param("userId") int userId, @Param("homeWorkId") int homeWorkId);
	
	public HomeWorkHistory getUserHomeWorkHistoryByHistId(
			@Param("histId") int histId);
	
	public void updateHomeWorkHistory(HomeWorkHistory homeWorkHistory);
	
	public List<HomeWorkHistory> getUserHomeWorkHistoryListByUserId(@Param("userId") int userId,@Param("page") Page<HomeWorkHistory> page);*/
	
	public void insertHomeWork(HomeWork homeWork);

	public List<HomeWork> getHomeWorkList(@Param("page") Page<HomeWork> page);

	public HomeWork getHomeWorkById(int homeworkid);

	public void updateHomeWork(HomeWork homework);

	public void deleteHomeWork(Integer homeWorkId);

	public List<HomeWork> getIndexHomeWorkList();

	public HomeWorkHistory getUserHomeWorkHistoryByUserIdAndHomeWorkId(int userId, int homeWorkId);

	public void addUserHomeWorkHistory(HomeWorkHistory homeWorkHistory);
}
